package py.com.fms.com.bean;

import java.io.Serializable;
import java.util.Date;

public class BuyConditionBean implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Long id;
	private Long idEnt;
	private String cod;
	private String descrip;
	private Integer instalments; // numero de cuotas
	private Integer period; // dias entre cuotas
	private Long userIns;
	private Date startDate;
	private Boolean status;
	private Long idBuyType;
	
	public boolean equals(Object obj) {
		if (!(obj instanceof BuyConditionBean)) {
		return false;
		}
		BuyConditionBean bean = (BuyConditionBean) obj;

		return (this.id.equals(bean.id));

		}
	
	// geters and seters
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getIdEnt() {
		return idEnt;
	}
	public void setIdEnt(Long idEnt) {
		this.idEnt = idEnt;
	}
	public String getCod() {
		return cod;
	}
	public void setCod(String cod) {
		this.cod = cod;
	}
	public String getDescrip() {
		return descrip;
	}
	public void setDescrip(String descrip) {
		this.descrip = descrip;
	}
	public Integer getInstalments() {
		return instalments;
	}
	public void setInstalments(Integer instalments) {
		this.instalments = instalments;
	}
	public Integer getPeriod() {
		return period;
	}
	public void setPeriod(Integer period) {
		this.period = period;
	}
	public Long getUserIns() {
		return userIns;
	}
	public void setUserIns(Long userIns) {
		this.userIns = userIns;
	}
	public Date getStartDate() {
		return startDate;
	}
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	public Boolean getStatus() {
		return status;
	}
	public void setStatus(Boolean status) {
		this.status = status;
	}

	public void setIdBuyType(Long idBuyType) {
		this.idBuyType = idBuyType;
	}

	public Long getIdBuyType() {
		return idBuyType;
	}
	
}
